'use strict';

module.exports = app => {
    const { INTEGER, DATE } = app.Sequelize;
 
    const ArticleCollection = app.model.define('article_collection', {
        article_id: {
            type: INTEGER,
            primaryKey: true,
            allowNull: false,
            autoIncrement: true
        },
        collection_id: {
            type: INTEGER,
            primaryKey: true
        },
        created_at: DATE,
        updated_at: DATE
    });

    return ArticleCollection;
}